//
//  BundleExtension.swift
//  DMRCommonBaseLib
//
//  Created by edy on 2025/10/28.
//

import Foundation

@objc public extension Bundle {

    var appName: String {
        return infoDictionary?["CFBundleName"] as! String
    }
    
    var appDisplayName: String {
        return infoDictionary?["CFBundleDisplayName"] as! String
    }

    var bundleId: String {
        return bundleIdentifier!
    }

    var versionNumber: String {
        return infoDictionary?["CFBundleShortVersionString"] as! String
    }

    var buildNumber: String {
        return infoDictionary?["CFBundleVersion"] as! String
    }

}
